import Color from 'element-plus/es/components/color-picker/src/color'
import type { MockMethod } from 'vite-plugin-mock'

const routes = [
    {
        path: '/root',
        redirect: '/root/home',
        name: 'Root',
        component: 'Admin',
        meta: {
            title: '组件页面',
            icon: 'icon-tongji',
        },
    },
]

const apis: MockMethod[] = [
    {
        url: '/mock/v1/getUserRoutes',
        method: 'post',
        response: () => {
            return {
                code: 200,
                message: 'ok',
                data: {
                    routes,
                    home: 'Home',
                },
            }
        },
    },
]

export default apis
